import 'osc_author.dart';

class OscTweetLikeReverseEntity {
	OscAuthor author;
	int likeCount;
	bool liked;

	OscTweetLikeReverseEntity({this.author, this.likeCount, this.liked});

	OscTweetLikeReverseEntity.fromJson(Map<String, dynamic> json) {
		author = json['author'] != null ? new OscAuthor.fromJson(json['author']) : null;
		likeCount = json['likeCount'];
		liked = json['liked'];
	}

	Map<String, dynamic> toJson() {
		final Map<String, dynamic> data = new Map<String, dynamic>();
		if (this.author != null) {
      data['author'] = this.author.toJson();
    }
		data['likeCount'] = this.likeCount;
		data['liked'] = this.liked;
		return data;
	}
}
